package ru.spbu.math.seabattle.client.messages;

import java.io.Serializable;

import ru.spbu.math.seabattle.entity.TurnResult;

public class OnEnemyTurnEndedMessage implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private final TurnResult result;

	public OnEnemyTurnEndedMessage(TurnResult result) {
		
		if (result == null) {
			throw new NullPointerException();
		}
		
		this.result = result;
	}
	
	public TurnResult getTurnResult() {
		return result;
	}
}
